package com.order.iClient.impl;

import com.order.iClient.IGoodsClient;
import com.order.resp.Item;
import com.order.resp.RepsVo;
import org.springframework.stereotype.Component;

@Component
public class GoodsClientImpl implements IGoodsClient {

    @Override
    public RepsVo<Item> queryByGoodsId(String goodsId) {
        System.out.println("----执行降级queryByGoodsId------");
        RepsVo<Item> repsVo  = new RepsVo<Item>();
        repsVo.setCode("-1");
        repsVo.setMsg("商品服务繁忙，请重试");
        return repsVo;
    }
}
